//
//  GameDetailSetCollectionApi.m
//  gamebox_qpp
//
//  Created by 赵隆杰 on 2022/1/6.
//

#import "GameDetailSetCollectionApi.h"

@implementation GameDetailSetCollectionApi
{
    NSString *_gameId;
}

- (instancetype)initWithGameId:(NSString *)gameId
{
    self = [super init];
    if (self) {
        _gameId = gameId;
    }
    return self;
}

- (NSString *)requestUrl {
    
    return @"ios/game-collect/insertCollectGame";
}

- (YTKRequestMethod)requestMethod {
    return YTKRequestMethodPUT;
}

- (YTKRequestSerializerType)requestSerializerType
{
    return YTKRequestSerializerTypeJSON;
}

- (id)requestArgument {
    
    NSMutableDictionary *params = [[NSMutableDictionary alloc] init];
    params[@"userId"] = [LocalData fetchUserInfo].userId;
    params[@"gameId"] = _gameId;
    return params;
}



@end
